import request from '@/utils/request'

// 查询用户密码安全存储列表
export function listUserPasswords(query) {
  return request({
    url: '/system/userPasswords/list',
    method: 'get',
    params: query
  })
}

// 查询用户密码安全存储详细
export function getUserPasswords(id) {
  return request({
    url: '/system/userPasswords/' + id,
    method: 'get'
  })
}

// 新增用户密码安全存储
export function addUserPasswords(data) {
  return request({
    url: '/system/userPasswords',
    method: 'post',
    data: data
  })
}

// 修改用户密码安全存储
export function updateUserPasswords(data) {
  return request({
    url: '/system/userPasswords',
    method: 'put',
    data: data
  })
}

// 删除用户密码安全存储
export function delUserPasswords(id) {
  return request({
    url: '/system/userPasswords/' + id,
    method: 'delete'
  })
}
